#pragma once 

#include <iostream>
#include "protocol.hpp"

class Task
{
  private:
    int sock;
    CallBack handler;//设置回调
  public:
    Task()
    {}
    Task(int _sock):sock(_sock)
    {}
    void ProcessOn()
    {
      handler(sock);
    }
    ~Task()
    {}

};
